#ifndef WF_DRAWLINETANGENT2_H
#define WF_DRAWLINETANGENT2_H

#include "pf_previewactioninterface.h"
#include "gui_export.h"

/**
 * This action class can handle user events to draw tangents from circle to
 * circle.
 *
 */
class GUI_EXPORT WF_DrawLineTangent2 : public PF_PreviewActionInterface {
	Q_OBJECT
private:
    enum Status {
        SetCircle1,     /**< Choose the startpoint. */
        SetCircle2      /**< Choose the circle / arc. */
    };

public:
    WF_DrawLineTangent2(PF_Container& container,
                              PF_GraphicView& graphicView);
    ~WF_DrawLineTangent2() {}

	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void trigger();
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseButtonHints();
    //virtual void hideOptions();
    //virtual void showOptions();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

private:
    /** Closest tangent. */
    PF_Line* tangent;
    /** 1st chosen entity */
    PF_Entity* circle1;
    /** 2nd chosen entity */
    PF_Entity* circle2;
    /** Data of new tangent */
    PF_LineAttribute data;
};

#endif
